package com.neusoft.ysu.his.service.impl;

import com.neusoft.ysu.his.entity.CommonResult;
import com.neusoft.ysu.his.entity.Level;
import com.neusoft.ysu.his.mapper.LevelMapper;
import com.neusoft.ysu.his.service.ILevelService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 作者：赵子鉴
 * @since 2023-08-27
 */
@Service
public class LevelServiceImpl  implements ILevelService {
    @Autowired
    LevelMapper levelMapper;

    @Override
    public CommonResult findAll() {
        return new CommonResult<>(levelMapper.selectList(null));
    }
}
